package com.medical.project.system.domain;

import com.medical.framework.aspectj.lang.annotation.Excel;
import com.medical.framework.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 行政区域管理对象 t_area
 * 
 * @author ruoyi
 * @date 2020-05-24
 */
public class Area extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 行政区域编号 */
    private String areaCode;

    /** 上一级行政区域编号 */
    @Excel(name = "上一级行政区域编号")
    private String areapCode;

    /** 行政区域名称 */
    @Excel(name = "行政区域名称")
    private String areaName;

    /** 行政级别 */
    @Excel(name = "行政级别")
    private Integer grade;

    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setAreapCode(String areapCode) 
    {
        this.areapCode = areapCode;
    }

    public String getAreapCode() 
    {
        return areapCode;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setGrade(Integer grade) 
    {
        this.grade = grade;
    }

    public Integer getGrade() 
    {
        return grade;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("areaCode", getAreaCode())
            .append("areapCode", getAreapCode())
            .append("areaName", getAreaName())
            .append("grade", getGrade())
            .toString();
    }
}
